//
//  RMDetailViewController.h
//	Used only in the iPad GUI
//  rmplanner
//
//  Created by Andrew Pigram on 3/05/12.
//  Copyright (c) 2012 PiAMP Productions. All rights reserved.
//

#import <UIKit/UIKit.h>

@class RMMeal, RMFirstViewController;

@interface RMDetailViewController : UIViewController <UIAlertViewDelegate, NSURLConnectionDelegate, UITextViewDelegate>

@property (strong, nonatomic) IBOutlet UIButton* mealButton;
@property (strong, nonatomic) IBOutlet UIButton* voteButton;
@property (strong, nonatomic) IBOutlet UIImageView* imgView;
@property (strong, nonatomic) IBOutlet UITextView* description;
@property (strong, nonatomic) RMMeal* meal;
@property (nonatomic) NSInteger uid;
@property (strong, nonatomic) NSMutableData* retData;
@property (nonatomic) NSInteger buttonState;
@property (strong, nonatomic) NSMutableArray* allergies;
@property (strong, nonatomic) RMFirstViewController* owner;
@property (strong, nonatomic) IBOutlet UIWebView* webView;

- (IBAction)toggleVote;
- (IBAction)lateMeal;
- (void)setDetailItem:(RMMeal *)item fromController:(RMFirstViewController *)controller;
- (void)setDetailItems:(NSArray *)meals withDate:(NSString *)date;

@end
